package com.wulinbus.dao.creative;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wulinbus.model.CreativeOrderModel;

public interface CreativeOrderDAO {
	
	public CreativeOrderModel getById(@Param("order_id")Integer order_id);
	
	public CreativeOrderModel getByNum(@Param("order_num")String order_num);

	public CreativeOrderModel getByUid(@Param("cid")Integer cid,@Param("uid")Integer uid);
	
	public CreativeOrderModel getOrderPayByUid(@Param("cid")Integer cid,@Param("uid")Integer uid);
	
	public List<CreativeOrderModel> getList(@Param("uid")Integer uid,@Param("start")Integer start, @Param("count")Integer count);
	
	public Integer getListCount(@Param("uid")Integer uid);
	
	public List<CreativeOrderModel> getSellList(@Param("cuid")Integer cuid,@Param("start")Integer start, @Param("count")Integer count);
	
	public Integer getSellListCount(@Param("cuid")Integer cuid);

	public Integer insert(CreativeOrderModel order);

	public Integer update(CreativeOrderModel order);
	
	public Integer updateByOrderNum(CreativeOrderModel order);

	public Integer delete(@Param("order_id")Integer order_id);
}
